#! /bin/sh
if grep pattern testcmd
then 
  echo true
else
  echo false
fi
